﻿using System;

namespace SewerAPI.Core
{
    /// <summary>
    /// The different messatetypes
    /// </summary>
    [Flags]
    public enum MessageType { 
        Ping =      0x0,
        Channel =   0x2,
        Public =    0x4,
        Private =   0x8,
        Key =       0x16,
        Void =      0x32
    }

    /// <summary>
    /// Determine the action
    /// </summary>
    [Flags]
    public enum MessageTransaction
    { 
        Unknown = 0x0,
        Sent = 0x2,
        Received = 0x4
    }

    /// <summary>
    /// The message transaction state 
    /// </summary>
    [Flags]
    public enum MessageTransactionState
    { 
        Unknown = 0x0,
        PreTransaction = 0x2,
        Transaction = 0x4,
        PostTransaction = 0x8,
        TransactionSucceeded = 0x16,
        TransactionFailed = 0x32
    }
}